package ooad.gof.factory.simpleFactory;

import ooad.gof.factory.Car;
import ooad.gof.factory.Plane;
import ooad.gof.factory.Product;

public class SimpleFactory {
	public static Product getInstance(String para){
		if("car".equalsIgnoreCase(para))
			return new Car();
		else if("plane".equalsIgnoreCase(para))
			return new Plane();
		else
			return null;		
	}
}
